# 更新系统软件包
sudo yum update -y

# 添加必要的库
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm -y

# 安装必要的基础包
sudo yum install autoconf libcurl-devel expat-devel gcc gettext-devel kernel-headers openssl-devel perl-devel zlib-devel kernel kernel-devel -y

# 再次更新软件包
sudo yum update -y

# Enable Swap Memory

sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1
